package com.huayi.datagovernance.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huayi.datagovernance.common.SysConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 任务表
 * </p>
 *
 * @author dalong
 * @since 2021-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TYwTask对象", description="任务表")
@TableName(value = "t_yw_task",schema = SysConstant.DB_SCHEMA_YWSJ)
public class TYwTask implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "oid", type = IdType.NONE)
    private Long oid;

    @ApiModelProperty(value = "任务名称")
    private String name;

    @ApiModelProperty(value = "任务时间")
    private Date tasktime;

    @ApiModelProperty(value = "是否推送：0 未执行 1 执行中  2.现场处理  3.已完成")
    private Integer sfts;

    @ApiModelProperty(value = "版本")
    private Integer versionid;

    @ApiModelProperty(value = "是否定时质检：0为否 1为是")
    private Integer sfdszj;

    @ApiModelProperty(value = "工单类型：1-专线，2-台区, 3-业扩，4-高压核查")
    private Integer gdtype;

    @ApiModelProperty(value = "用户ID")
    private String userid;

    @ApiModelProperty(value = "运维单位")
    private String yxdw;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "任务id")
    private String taskid;

    @ApiModelProperty(value = "数据来源  1-手动创建 2-7009系统 3--图形质检")
    private Integer datafrom;

    @ApiModelProperty(value = "是否已经推送到电网GIS ，1为已经推送，0为未推送")
    private Integer send;

    @ApiModelProperty(value = "处理类型: 0-未处理 1-app端(现场)处理 2-web端(系统)处理")
    private Integer resolveType;

    @ApiModelProperty(value = "所属责任区")
    private String sszrq;

    @ApiModelProperty(value = "运行单位名称")
    private String yxdwmc;

    @ApiModelProperty(value = "县公司名称字段")
    private String xgsmc;

    @ApiModelProperty(value = "单位编号")
    private String orgno;

    @ApiModelProperty(value = "所属线路，业扩工单专用")
    private String ssxl;


}
